<?php
use DB;
use Illuminate\Database\Seeder;
use Illuminate\Database\Eloquent\Model;
class UserTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
       DB::table('user')->insert([
           'username' => str_random(10),
           'password'=>bcrypt("000000"),
           'email'   => str_random(10)."@847759916@qq.com",
           "image"   =>"https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1561709550796&di=a41ce4d68efd7fb940013faecdeb1a15&imgtype=0&src=http%3A%2F%2Fimg.sccnn.com%2Fbimg%2F337%2F31452.jpg",
           "mobile"  => "152".str_random(9),
           "sex"     => "1",
           "ip"      =>"127.0.0.1",
           "is_open" =>1,
           "disabled"=>1,
           "created_at"=>date("Y-m-d H:i:s",time()),
           "updated_at"=>date("Y-m-d H:i:s",time()),
       ]);
    }
}
